import {request} from 'umi';

//列表数据
export let getarticle=(data:any)=>{
    return request(`https://api.blog.wipi.tech/api/article?page=${data.page}&pageSize=${data.pageSize}&status=publish`)
}
//轮播图
export let getBannerList=()=>{
    return request('https://api.blog.wipi.tech/api/article/all/recommend')
}
//推荐阅读
export let getSiderList=()=>{
    return request('https://api.blog.wipi.tech/api/article/recommend')
}
//文章标签
export let getTag=()=>{
    return request('https://api.blog.wipi.tech/api/tag')
}
//跳详情
export let BannerListDetail=(id:string)=>{
    return request(`https://api.blog.wipi.tech/api/article/${id}`)
}
//详情页
export let detailList=(id:string)=>{
    return request(`https://api.blog.wipi.tech/api/article/recommend?articleId=${id}`)
}